import { request } from '@/utils/request'
export default ({
    //获得学校
    getSchoolInfo(data) {
        return request('/sign/jwSchoolinfo/getSchoolShow', "GET", data);
    },
    //获取学校类别
    getSchoolType() {
        return request('/sign/jwDictData/getDictionariesSchoolType ', "GET");
    },
    //获取学校详情
    getSchoolDetail(data){
        return request('/cmeduApi/cmeduweb00001/getSchoolMember?schoolId='+data, "GET");
    },
    //获取学校下的班级
    getClassBySchool(data){
        return request('/cmeduApi/cmeduweb00001/getClassInfo/lists', "GET",data);
    },
    //根据学校获取学生
    getStudentBySchoolId(data){
        return request('/cmeduApi/cmeduweb00001/getStudentbySchoolId',"GET",data)
    },
    getTeacherBySchoolId(data){
        return request('/cmeduApi/cmeduweb00001/getTeacherBySchool',"GET",data)
    },
    //根据学校id获取学校详情
    getSchoolDetailsBySchoolId(data){
        return request('/cmeduApi/cmeduweb00001/v1/cmeduweb00001_em_230522001/details?id='+data,"GET")
    },
    //新增或者修改学校信息
    updateSchoolDetails(data){
        return request('/sign/jwSchoolinfo/updateSchool',"post",data)
    },
})
